package com.erbao.thread.juc;

import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.LongAdder;

/**
 * @author CaoBaoYin
 * @since 2022/2/26 15:42
 */
public class AtomicAdd {

    private LongAdder count = new LongAdder();
    // private AtomicLong count = new AtomicLong(0L);
    // private long count ;

    synchronized void m() {
        count.increment();
    }
}
